package com.ulife.permission.manager;

import com.ulife.common.Result;
import com.ulife.common.exception.ManagerException;
import com.ulife.permission.common.RoleQueryResult;
import com.ulife.permission.dao.dataobject.RoleDO;

public interface RoleManager {

	RoleQueryResult getAllRole() throws ManagerException;

	Result<RoleDO> addRole(RoleDO role) throws ManagerException;

	Result<Integer> delRole(long roleId) throws ManagerException;

	Result<Integer> updateRole(RoleDO role) throws ManagerException;

	Result<RoleDO> getRoleById(long roleId) throws ManagerException;

	RoleQueryResult getAllAvailableRoles() throws ManagerException;

}
